package com.atwork.wuhua.base;

/**
 * Created by Administrator on 2018/3/13 0013.
 */

public class BaseEntity<T> {
    //成功的code
    private String SUCCESS_CODE = "000";
    private String errno = "";
    private String errmsg = "";
    private T result;

    public boolean isSuccess() {
        return getErrno().equals(SUCCESS_CODE);
    }

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
